﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace NP.BPMReportPlatform.SystemSettings.Dto
{
    /// <summary>
    /// 审批配置表 批量导入
    /// IsLabelingError：是否标注数据错误
    /// </summary>
    [ExcelImporter(IsLabelingError = true, SheetName = "审批配置表")]
    public class ImportApproveConfigurationTemplate
    {
        /// <summary>
        /// BTID
        /// </summary>
        [ImporterHeader(Name = "BTID")]
        [Required(ErrorMessage = "BTID不能为空")]
        public string BTID { get; set; }

        /// <summary>
        /// 条件1
        /// </summary>
        [ImporterHeader(Name = "条件1")]
        public string Q1 { get; set; }

        /// <summary>
        /// 条件2
        /// </summary>
        [ImporterHeader(Name = "条件2")]
        public string Q2 { get; set; }

        /// <summary>
        /// 条件3
        /// </summary>
        [ImporterHeader(Name = "条件3")]
        public string Q3 { get; set; }

        /// <summary>
        /// 审批节点
        /// </summary>
        [ImporterHeader(Name = "审批节点")]
        [Required(ErrorMessage = "审批节点不能为空")]
        public string ApprovalNode { get; set; }

        /// <summary>
        /// 审批节点名称
        /// </summary>
        [ImporterHeader(Name = "审批节点名称")]
        public string ApprovalNodeName { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        [ImporterHeader(Name = "工号")]
        [Required(ErrorMessage = "工号不能为空")]
        public string EmployeeCode { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [ImporterHeader(Name = "类型")]
        public string Type { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ImporterHeader(Name = "备注")]
        public string Remark { get; set; }
    } 
}
